package day03;

public class OperDemo01 {
    public static void main(String[] args) {
        /*System.out.println(5%2);
        System.out.println(2%5);
        System.out.println(0%2);
        System.out.println(8%2);
         */
       /* int a=5, b=5;
        a++;
        ++b;
        System.out.println(a);//6
        System.out.println(b);//6

        int A=5, B=5;
        int C=A++;
        int D= ++B;
        System.out.println(A);//6
        System.out.println(B);//6
        System.out.println(C);//5
        System.out.println(D);//6

        */
        int a= 5, b=5;
        a--;
        --b;
        System.out.println(a);//4
        System.out.println(b);//4

        int A=5, B=5;
        int C= A--;
        int D= --B;
        System.out.println(A);//4
        System.out.println(B);//4
        System.out.println(C);//5
        System.out.println(D);//4

    }
}
